// component/TraceItem/TraceItem.js
Component({
    /**
     * 组件的属性列表
     */
    mixins: [require('../../mixin/themeChanged')],
    properties: {
        currentImgs: {type:Object}, 
        current: {type: Number}, 
        show: {type: Boolean}
    },
  
    /**
     * 组件的初始数据
     */
    data: {
  
    },
  
    /**
     * 组件的方法列表
     */
    methods: {
        hide(){
            this.setData({show:false})
            this.triggerEvent('hide')
        }, 
        change(e){
            this.setData({
                current: e.detail.current
            })
            this.triggerEvent('change', { current: e.detail.current }, {})
        }
    }
  })
  